<template>
   <div class="side-bar">
     <div class="userInfo">
        <div class="h5">Hi，欢迎使用</div>
        <div class="name">{{isLogin ? '易烊千玺' : '点击登录'}}</div>
        <div class="_info" v-if="!isLogin">欢迎来到钻石APP</div>
        <div class="uid" v-else>UID：30189942<span class="copy"></span></div>
     </div>
     <j-cell-group style="margin-top:.2rem;">
      <j-cell title="账户" :isSlot="isSlot" @click.native="goRouter('user')">
        <span class="icon-one"></span>
        <div class="amount">
          <span class="money">0.00</span>
          <span>ORG</span>
        </div>
      </j-cell>
      <j-cell title="收款管理" @click.native="goRouter('question')"></j-cell>
      <j-cell title="银行卡管理" @click.native="goRouter('bankcard')"></j-cell>
      <j-cell title="历史抢单记录" @click.native="goRouter('history/grab')"></j-cell>
    </j-cell-group>
    <j-cell-group style="margin-top:.2rem;" class="invitation-team">
      <j-cell title="邀请有奖" class="invitation" @click.native="goRouter('question')"></j-cell>
      <j-cell title="我的团队" class="team" @click.native="goRouter('question')"></j-cell>
    </j-cell-group>
    <j-cell-group style="margin-top:.2rem;">
      <j-cell title="常见问题" @click.native="goRouter('question')"></j-cell>
      <j-cell title="设置" @click.native="goRouter('setup/order')"></j-cell>
    </j-cell-group>
   </div>
</template>
<script>
export default {
  name: 'SideBar',
  data() {
    return {
      isSlot: true,
      isLogin: true
    };
  },
  props: {

  },
  mounted() {
  },
  methods: {
    goRouter(path) {
      this.$router.push({ 'path': '/' + path });
    }
  }
};
</script>
<style lang="less" scoped>
.side-bar{
  height: 100%;
  background-color: #f4f4f4;

  .icon-one{
    width: 111px;
    height: 36px;
    display: inline-block;
    position: absolute;
    left:-70%;
    top:5px;
    background-image: url('../assets/images/icon-one.png');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
  }
  .amount{
    font-size: 32px;
    color: #000;
    padding-right: 22px;
    background-image: url('../assets/images/icon-arrow-right-grey.png');
    background-position: right center;
    background-repeat: no-repeat;
    background-size: 10px 16px;
    .money{
      padding: 0 30px;
    }
  }
  .userInfo{
    background-color: #fff;
    padding: 17px 30px 24px;
    .h5{
      font-size: 48px;
      padding-bottom: 10px;
    }
    .name{
      font-size: 40px;
      padding: 15px 0 2px;
    }
    ._info{
      color: #4F86F1;
      font-size: 24px;
    }
    .uid{
      font-size: 24px;
      .copy{
        display: inline-block;
        width:36px;
        vertical-align: middle;
        height: 36px;
        background-image: url('../assets/images/icon-copy.png');
        background-position: center center;
        background-repeat: no-repeat;
        background-size: contain;
        margin-left:45px;
      }
    }
  }
}
</style>
